package components;

import com.artemis.Component;

public class Position extends Component
{
	private float x, y, theta;
	
	public Position(float x, float y)
	{
		this.setX(x);
		this.setY(y);
		setTheta(0);
	}

	public float getY() {
		return y;
	}

	public void setY(float y) {
		this.y = y;
	}

	public float getX() {
		return x;
	}

	public void setX(float x) {
		this.x = x;
	}

	public float getTheta() {
		return theta;
	}

	public void setTheta(float theta) {
		this.theta = theta % 360;
	}
}
